#!/bin/bash
set -e

verbose() {
    echo $ "$@"
    "$@"
}

# Example for converting folder: 
# for i in *; do path/to/convert_to_h264.sh "$i"; done

verbose ffmpeg -y -i "$1" -c:v libx264 /tmp/converting.mp4
verbose mv /tmp/converting.mp4 "$1"
